<!--#layout("/common/space.page.html",{"jsBase":"/js/","title":"修改密码"}){  -->
<!--#var currentMember = trainPlatform.getCurrentMember();  -->
<blockquote class="layui-elem-quote">修改用户信息</blockquote>
<form class="layui-form" action="#" lay-filter="memberInfoForm" method="post">
  <div class="layui-form-item">
    <label class="layui-form-label">输入手机号</label>
    <div class="layui-input-inline">
      <input type="text" name="phone" id="phone" lay-filter="phone" value="${currentMember.phone}" lay-verify="required" autocomplete="off" placeholder="请输入手机号" lay-reqText="请输入手机号码" class="layui-input">
    </div>
  </div>
  <div class="layui-form-item">
    <label class="layui-form-label">昵称</label>
    <div class="layui-input-inline">
      <input type="text" name="userName" lay-verify="required" autocomplete="off" value="${currentMember.userName}" placeholder="请输入昵称" lay-reqText="请输入昵称" class="layui-input">
    </div>
  </div>
  <div class="layui-form-item">
    <div class="layui-input-inline">
      <button type="submit" class="layui-btn" lay-submit="" lay-filter="">立即提交</button>
    </div>
  </div>
</form>
<script>
	layui.use(['form'],function() {
		var form = layui.form;
		form.on('submit(memberInfoForm)', function(){
			var f = this;
			Lib.submitForm("${ctxPath}/space/member/modifyMemberInfo.json",$(f),{},function(data) {
				console.info(data);
				Common.info("更新成功");
			})
			return false;
	    });
	});
</script>
<!--#}  -->
